package com.yaorange.certificate.controller.wxapi;

import com.yaorange.certificate.service.INjtAreaService;
import com.yaorange.certificate.service.INjtSerialAuthService;
import com.yaorange.certificate.service.INjtSerialService;
import com.yaorange.common.core.controller.BaseController;
import com.yaorange.common.core.domain.AjaxResult;
import org.aspectj.weaver.loadtime.Aj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 小程序api
 *
 * @author coach tam
 * @email 327395128@qq.com
 * @values 坚持灵活 灵活坚持
 * @since 2025/1/16
 */
@RestController
@RequestMapping("/api/serial")
public class NjtSerialAPI extends BaseController {

    @Autowired
    private INjtSerialAuthService serialAuthService;

    @GetMapping("/checkSerialCode")
    public AjaxResult checkSerialCode(@RequestParam("serialCode")String serialCode,@RequestParam("macCode")String macCode) {
        serialAuthService.check(serialCode, macCode);
        return AjaxResult.success();
    }

}
